/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_dmap_paramsCriteria extends AbstractORMCriteria {
    public final IntegerExpression id;
    public final StringExpression name;
    public final IntegerExpression rank;
    public final BooleanExpression useForConstructor;

    public T_dmap_paramsCriteria(Criteria criteria) {
	super(criteria);
	id = new IntegerExpression("id", this);
	name = new StringExpression("name", this);
	rank = new IntegerExpression("rank", this);
	useForConstructor = new BooleanExpression("useForConstructor", this);
    }

    public T_dmap_paramsCriteria(PersistentSession session) {
	this(session.createCriteria(T_dmap_params.class));
    }

    public T_dmap_paramsCriteria() throws PersistentException {
	this(org.testis.orm.manager.TestisDbPersistentManager.instance()
		.getSession());
    }

    public T_dmap_typeCriteria createTypeCriteria() {
	return new T_dmap_typeCriteria(createCriteria("Type"));
    }

    public T_dmap_regextableCriteria createRegexCriteria() {
	return new T_dmap_regextableCriteria(createCriteria("Regex"));
    }

    public T_dmap_objectpairCriteria createT_dmap_objectpairCriteria() {
	return new T_dmap_objectpairCriteria(
		createCriteria("ORM_T_dmap_objectpair"));
    }

    public T_dmap_params uniqueT_dmap_params() {
	return (T_dmap_params) super.uniqueResult();
    }

    public T_dmap_params[] listT_dmap_params() {
	java.util.List list = super.list();
	return (T_dmap_params[]) list.toArray(new T_dmap_params[list.size()]);
    }
}
